<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:a="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    template="/layout/template.xhtml">

	<ui:define name="body">
		<rich:panel>
			<f:facet name="header">Perfil de #{subgrupoPerfilHome.instance.nome}</f:facet>
			
			<s:decorate id="nome" template="/layout/display.xhtml">
            	<ui:define name="label">Nome</ui:define>
            	<h:outputText value="#{subgrupoPerfilHome.instance.nome}"/>
        	</s:decorate>
        	
        	<s:decorate id="dataCadastro" template="/layout/display.xhtml">
            	<ui:define name="label">Data de Cadastro</ui:define>
            	<h:outputText value="#{subgrupoPerfilHome.instance.dataCadastro.time}"/>
        	</s:decorate>
        	
        	<s:decorate id="email" template="/layout/display.xhtml">
            	<ui:define name="label">E-mail</ui:define>
            	<h:outputText value="#{subgrupoPerfilHome.instance.email}"/>
        	</s:decorate>
        	
        	<s:decorate id="padrao" template="/layout/display.xhtml">
            	<ui:define name="label">Padrão</ui:define>
            	<h:outputText value="#{subgrupoPerfilHome.instance.padraoString}"/>
        	</s:decorate>
        	
        	<s:decorate id="status" template="/layout/display.xhtml">
            	<ui:define name="label">Status</ui:define>
            	<h:outputText value="#{subgrupoPerfilHome.instance.status}"/>
        	</s:decorate>
        	
        	<s:decorate id="subGrupo" template="/layout/display.xhtml">
            	<ui:define name="label">Grupo</ui:define>
            	<h:outputText value="#{subgrupoPerfilHome.instance.grupo.nome}"/>
        	</s:decorate>
        	
        	<div style="clear:both"/>
        	
        </rich:panel>
        
        <br clear="left"/>
		
		<div class="actionButtons">

	        <s:button view="/resources/SubGrupoEdit.xhtml"
	                    id="edit"
	                 	value="Editar">
	        	<f:param name="subGrupoId" value="#{subgrupoPerfilHome.instance.id}"/>
	        	<f:param name="subGrupoFrom" value="SubgrupoPerfil"/>
	        </s:button>
	    </div>
    </ui:define>
</ui:composition>